package com.nf.service;

import com.nf.entity.User;
import com.nf.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.swing.*;
import java.util.List;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    public List<User> getAllUser() {
        System.out.println("Dao层"+userMapper);

        List<User> userList=userMapper.getAllUser();
        for (User u:userList){
            System.out.println(u.getUid()+" "+u.getUserName()+" "+u.getSex());
        }
        return null;
    }
}
